<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>关键词分析</h3>
      
    </div>
  </div>
  <div class="fixed-empty"></div>

  <a href="index.php?act=key&op=key_hot&period=current" class="btn"><span>今天</span></a>
  <a href="index.php?act=key&op=key_hot&period=yesterday" class="btn " ><span>昨天</span></a>
  <a href="index.php?act=key&op=key_hot&period=week" class="btn "><span>近一周</span></a>
  <a href="index.php?act=key&op=key_hot&period=mouth" class="btn "><span>近一个月</span></a>
  
  <table class="table tb-type2" id="prompt">
    <tbody>
      <tr class="space odd">
        <th class="nobg" colspan="12"><div class="title"><h5><?php echo $lang['nc_prompts'];?></h5><span class="arrow"></span></div></th>
      </tr>
      <tr>
        <td>
          <ul>
            <li>管理员后台运营模块下新增搜索关键词列表功能</li>
            <li>列表展示项目包括：编号、搜索词、总搜索次数</li>
            <li>查询条件如下：今天，昨天，近一周，近一月</li>
            <li>进入页面默认显示当日的统计记录</li>
          </ul>
        </td>
      </tr>
    </tbody>
  </table>
  <form method='post' id="list_form">
    <input type="hidden" name="form_submit" value="ok" />
    <input type="hidden" name="submit_type" id="submit_type" value="" />
    <input type="hidden" name="class_id" id="class_id">
    
    
    <table class="table tb-type2">

      <thead>

        <tr class="thead">
          <th class="w12">&nbsp;</th>
          <th class="w200 align-center">关键词名称</th>
          <th class="w200 align-center">检索次数</th>
          <th class="w200 align-center"><span><?php echo $lang['nc_handle'];?></span></th>
        </tr>
      </thead>
      <tbody>
        <?php if (!empty($output['key_list']) && is_array($output['key_list'])) { ?>
        <?php foreach ($output['key_list'] as $val) { ?>
           <tr class="hover edit">
              <td>&nbsp;</td>
              <td class="nowrap align-center">
                <span nc_type="inline_edit" ajax_branch="class" ><?php echo $val['key_word'];?></span>
              </td>
              <td class="name nowrap align-center">
                <span nc_type="inline_edit" ajax_branch="class" ><?php echo $val['key_count'];?></span>
                
              </td>
              
              <td class="nowrap align-center"><a href="<?php echo urlAdmin('key', 'key_detail', array('keyword' => $val['key_word'],'period'=>$output['period']));?>">查看详情</a></td>
        

              
            </tr>
        <?php } ?>
        <?php }  ?>
        
      </tbody>
     
    </table>
  </form>
</div>

